import send from '../../http'
export default {
  queryWeChatAuthorizationList (data) {
    let req = {
      data: data,
      action: 'config.channel.queryWechat'
    }
    return send.fetch(req, 'post')
  },
  queryWeChatDockList (data) {
    let req = {
      data: data,
      action: 'config.channel.queryDockWeiXinList'
    }
    return send.fetch(req, 'post')
  },
  // 查询微信公众平台对接列表
  getWxDevModeConfigs (data) {
    let req = {
      data: data,
      action: 'config.channel.getWxDevModeConfigs'
    }
    return send.fetch(req, 'post')
  },
  // 添加微信公众平台对接信息
  saveWxDevModeConfig (data) {
    let req = {
      data: data,
      action: 'config.channel.saveWxDevModeConfig'
    }
    return send.fetch(req, 'post')
  },
  // 获取微信公众平台对接服务IP
  getWechatAddress (data) {
    let req = {
      data: data,
      action: 'config.channel.getWechatAddress'
    }
    return send.fetch(req, 'post')
  },
  // 更新微信公众平台对接信息
  updateWxDevModeConfig (data) {
    let req = {
      data: data,
      action: 'config.channel.updateWxDevModeConfig'
    }
    return send.fetch(req, 'post')
  },
  SaveWeChatDock (data) {
    let req = {
      data: data,
      action: 'config.channel.saveDockWeixin'
    }
    return send.fetch(req, 'post')
  },
  EditWeChatDock (data) {
    let req = {
      data: data,
      action: 'config.channel.updateDockWeixin'
    }
    return send.fetch(req, 'post')
  },
  GetWeChatDock (data) {
    let req = {
      data: data,
      action: 'config.channel.getDockWeixin'
    }
    return send.fetch(req, 'post')
  },
  DeleteWeChatDock (data) {
    let req = {
      data: data,
      action: 'config.channel.delDockWeixin'
    }
    return send.fetch(req, 'post')
  },
  //  删除微信公众平台对接信息
  removeWxDevModeConfig (data) {
    let req = {
      data: data,
      action: 'config.channel.removeWxDevModeConfig'
    }
    return send.fetch(req, 'post')
  },
  DeleteWeChatAuth (data) {
    let req = {
      data: data,
      action: 'config.channel.deleteWechat'
    }
    return send.fetch(req, 'post')
  },
  updateWeChatAuth (data) {
    let req = {
      data: data,
      action: 'config.channel.updateWechat'
    }
    return send.fetch(req, 'post')
  },
  saveWeixinMaterial (data) {
    let req = {
      data: data,
      action: 'config.channel.saveWeixinMaterial'
    }
    return send.fetch(req, 'post')
  },
  getMaterial (data) {
    let req = {
      data: data,
      action: 'config.channel.getMaterial'
    }
    return send.fetch(req, 'post')
  },
  getArticle (data) {
    let req = {
      data: data,
      action: 'config.channel.getArticle'
    }
    return send.fetch(req, 'post')
  },
  saveNewsMaterial (data) {
    let req = {
      data: data,
      action: 'config.channel.saveNewsMaterial'
    }
    return send.fetch(req, 'post')
  },
  createWeixinMenu (data) {
    let req = {
      data: data,
      action: 'config.channel.createWeixinMenu'
    }
    return send.fetch(req, 'post')
  },
  getWeixinMenu (data) {
    let req = {
      data: data,
      action: 'config.channel.getWeixinMenu'
    }
    return send.fetch(req, 'post')
  },
  getWeixinMiniAppCheckFileList (data) {
    let req = {
      data: data,
      action: 'config.channel.getWeixinMiniAppCheckFileList'
    }
    return send.fetch(req, 'post')
  },
  addWeixinMiniAppCheckFile (data) {
    let req = {
      data: data,
      action: 'config.channel.addWeixinMiniAppCheckFile'
    }
    return send.fetch(req, 'post')
  },
  getWeixinMiniAppCheckFile (data) {
    let req = {
      data: data,
      action: 'config.channel.getWeixinMiniAppCheckFile'
    }
    return send.fetch(req, 'post')
  },
  delWeixinMiniAppCheckFile (data) {
    let req = {
      data: data,
      action: 'config.channel.delWeixinMiniAppCheckFile'
    }
    return send.fetch(req, 'post')
  },
  updateWeixinMiniAppCheckFile (data) {
    let req = {
      data: data,
      action: 'config.channel.updateWeixinMiniAppCheckFile'
    }
    return send.fetch(req, 'post')
  },
  queryLinkUrlCfg (data) {
    let req = {
      data: data,
      action: 'config.channel.queryLinkUrlCfg'
    }
    return send.fetch(req, 'post')
  },
  queryEcommerceLinkUrlCfg (data) {
    let req = {
      data: data,
      action: 'config.channel.queryEcommerceLinkUrlCfg'
    }
    return send.fetch(req, 'post')
  },
  addLinkUrlCfg (data) {
    let req = {
      data: data,
      action: 'config.channel.addLinkUrlCfg'
    }
    return send.fetch(req, 'post')
  },
  addEcommerceLinkUrlCfg (data) {
    let req = {
      data: data,
      action: 'config.channel.addEcommerceLinkUrlCfg'
    }
    return send.fetch(req, 'post')
  },
  updateEcommerceLinkUrlCfg (data) {
    let req = {
      data: data,
      action: 'config.channel.updateEcommerceLinkUrlCfg'
    }
    return send.fetch(req, 'post')
  },
  delEcommerceLinkUrlCfg (data) {
    let req = {
      data: data,
      action: 'config.channel.delEcommerceLinkUrlCfg'
    }
    return send.fetch(req, 'post')
  },
  updateLinkUrlCfg (data) {
    let req = {
      data: data,
      action: 'config.channel.updateLinkUrlCfg'
    }
    return send.fetch(req, 'post')
  },
  delLinkUrlCfg (data) {
    let req = {
      data: data,
      action: 'config.channel.delLinkUrlCfg'
    }
    return send.fetch(req, 'post')
  },
  queryWxMiniConfigArr (data) {
    let req = {
      data: data,
      action: 'config.channel.queryWxMiniConfigArr'
    }
    return send.fetch(req, 'post')
  },
  deleteWxMiniConfig (data) {
    let req = {
      data: data,
      action: 'config.channel.deleteWxMiniConfig'
    }
    return send.fetch(req, 'post')
  },
  updateWeixinMiniConfigById (data) {
    let req = {
      data: data,
      action: 'config.channel.updateWeixinMiniConfigById'
    }
    return send.fetch(req, 'post')
  },
  updateWeixinMiniAuthConfig (data) {
    let req = {
      data: data,
      action: 'config.channel.updateWxminiAuthConfig'
    }
    return send.fetch(req, 'post')
  },
  getWeixinMiniAuthConfigList (data) {
    let req = {
      data: data,
      action: 'config.channel.queryWxminiAuthConfig'
    }
    return send.fetch(req, 'post')
  },
  delWeixinMiniAuthConfig (data) {
    let req = {
      data: data,
      action: 'config.channel.deleteWxminiAuthConfig'
    }
    return send.fetch(req, 'post')
  },
  getWeixinMiniAuthConfigById (data) {
    let req = {
      data: data,
      action: 'config.channel.queryWxminiAuthConfigById'
    }
    return send.fetch(req, 'post')
  },
  queryWeixinConfigById (data) {
    let req = {
      data: data,
      action: 'config.channel.queryWeixinConfigById'
    }
    return send.fetch(req, 'post')
  },
  saveWeixinMiniConfig (data) {
    let req = {
      data: data,
      action: 'config.channel.saveWeixinMiniConfig'
    }
    return send.fetch(req, 'post')
  },
  addAlipayMini (data) {
    let req = {
      data: data,
      action: 'config.channel.addAliPayMiniAppCheckFile'
    }
    return send.fetch(req, 'post')
  },
  getAlipayMiniList (data) {
    let req = {
      data: data,
      action: 'config.channel.getAliPayMiniAppCheckFileList'
    }
    return send.fetch(req, 'post')
  },
  editAlipayMini (data) {
    let req = {
      data: data,
      action: 'config.channel.updateAliPayMiniAppCheckFile'
    }
    return send.fetch(req, 'post')
  },
  getAlipayMiniById (data) {
    let req = {
      data: data,
      action: 'config.channel.getAliPayMiniAppCheckFile'
    }
    return send.fetch(req, 'post')
  },
  delAlipayMiniById (data) {
    let req = {
      data: data,
      action: 'config.channel.deleteAliPayMiniAppCheckFile'
    }
    return send.fetch(req, 'post')
  },
  saveWxEnterpriseConfig (data) {
    let req = {
      data: data,
      action: 'config.channel.saveWxEnterpriseConfig'
    }
    return send.fetch(req, 'post')
  },
  getWxEnterpriseConfigs (data) {
    let req = {
      data: data,
      action: 'config.channel.getWxEnterpriseConfigs'
    }
    return send.fetch(req, 'post')
  },
  updateWxEnterpriseConfig (data) {
    let req = {
      data: data,
      action: 'config.channel.updateWxEnterpriseConfig'
    }
    return send.fetch(req, 'post')
  },
  removeWxEnterpriseConfig (data) {
    let req = {
      data: data,
      action: 'config.channel.removeWxEnterpriseConfig'
    }
    return send.fetch(req, 'post')
  },
  getWxEnterpriseAuthUrl (data) {
    let req = {
      data: data,
      action: 'config.channel.getWxEnterpriseAuthUrl'
    }
    return send.fetch(req, 'post')
  },
  getWxEnterpriseById (data) {
    let req = {
      data: data,
      action: 'config.channel.getWxEnterpriseById'
    }
    return send.fetch(req, 'post')
  },
}
